﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StringDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            //var numbers = new int[5] { 1, 2, 3, 4, 5 };
            //string numberList = String.Join("***", numbers);
            //Console.WriteLine(numberList);
            DateTime dt = new DateTime(2016,12,15,19,46,55);
            Console.WriteLine(dt.ToLongTimeString());
            Console.WriteLine(DateTime.Today.ToString("dd-$-MM-$-yyyy"));
            Console.WriteLine(DateTime.Today.AddDays(5)- DateTime.Today);
            TimeSpan ts = TimeSpan.FromHours(4);
            DateTimeOffset dto = new DateTimeOffset(2017,01,01, 00, 00,00, ts);
            Console.WriteLine(dto);



        }
    }
}
